Repository navigation
feat(moonbit)!: migrate annotations and remove Show support - #1782
Open
peter-jerry-ye wants to merge 1 commit into
Open
peter-jerry-ye wants to merge 1 commit into
peter-jerry-ye wants to merge 1 commit into
Conversation
Emit export_name annotations on linking-package wrappers and realloc, and use derive annotations throughout generated types and runtime templates. BREAKING CHANGE: Remove the deprecated --derive-show option and DeriveOpts::derive_show field.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The MoonBit generator still emits postfix derives and configures function exports in
moon.pkg. Migrate generated bindings and runtime templates to#derive(...)and#export_name(...), and remove deprecatedShowgeneration.Export annotations are attached to the existing wrappers and realloc implementation in the package that produces the Wasm artifact. This preserves the existing export names, signatures, forwarding wrappers, and memory configuration. The derive migration preserves Debug/Eq behavior and continues to omit derives for records and variants containing futures or streams; the existing test assertions and documentation are updated accordingly.
This intentionally removes
--derive-showandDeriveOpts::derive_show. Use--derive-debugfor debug formatting. The change is limited to declaration syntax and removal of Show support.